package fr.gestionimmoejb.model;

import java.io.Serializable;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Role implements Serializable {
	@EmbeddedId
	private RolePK pk;

	@ManyToOne
	@JoinColumn(name="idUser", insertable=false, updatable=false)
	private Utilisateur user;

	private static final long serialVersionUID = 1L;

	public Role() {
		super();
	}

	public RolePK getPk() {
		return this.pk;
	}

	public void setPk(RolePK pk) {
		this.pk = pk;
	}

	public Utilisateur getUser() {
		return this.user;
	}

	public void setUser(Utilisateur iduser) {
		this.user = iduser;
	}

}
